package collectdemo13.example02;

import java.util.ArrayList;
import java.util.List;

public class School
{
	private String name = null;
	private List<Student> student = null;
	
	public School()
	{
		this.student = new ArrayList<Student>();
	}
	
	public School(String name)
	{
		this();
		this.setName(name);
	}
	public String getName()
	{
		return this.name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public List<Student> getStudent()
	{
		return this.student;
	}
	public void setStudent(List<Student> student)
	{
		this.student = student;
	}
	@Override
	public String toString()
	{
		return " 学校是："+this.name;
	}
	
}
